package com.shop.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shop.pojo.ums.Ums_Member;
import com.shop.mapper.Ums_Member_Mapper;
import com.shop.service.Ums_Member_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Ums_Member_ServiceImpl implements Ums_Member_Service {
    @Autowired
    private Ums_Member_Mapper ums_member_mapper;

    /*
     * @Description  根据用户名和密码、手机号密码、邮箱密码来登录
     * @param loginname 可以是用户名、手机号、邮箱
     * @param password 密码
     * @return com.shop.pojo.ums.Ums_Member
     * @author liusupeng
     * @date 2020/10/26 12:33
     */
    public Ums_Member getUsersByParam(String loginname, String password) {

        return ums_member_mapper.getUsersByParam(loginname, password);
    }

}
